From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 27 Jun 2006 10:27:25 +0000 (+0100) Subject: [XEN][BUILD] Both ctags and etags support the -a (append) option, and X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15913^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a44d6f1d93d9262a9d369d870a9f573337317819;p=xen.git [XEN][BUILD] Both ctags and etags support the -a (append) option, and by removing the tags or TAGS file, and then running using the -a option in conjunction with xargs a full list of tags will be obtained, regardless of how many files there are. I believe that the existing invocations of both etags and ctags are wrong: * I don't think - is a vailid argument to etags * xargs ctags does not handle the case where ctags is invoked multiple times by xargs when there are too many files to fit on one command line. Signed-off-by: Horms --- diff --git a/xen/Makefile b/xen/Makefile index 277ee87603..15656ce012 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -132,11 +132,11 @@ endef .PHONY: _TAGS _TAGS: - $(all_sources) | etags - + rm -f TAGS && $(all_sources) | xargs etags -a .PHONY: _tags _tags: - $(all_sources) | xargs ctags + rm -f TAGS && $(all_sources) | xargs ctags -a .PHONY: _cscope _cscope: